import * as React from 'react'; import { CheckboxField, Flex, SelectField, TableProps, TextField, } from '@aws-amplify/ui-react'; export interface TablePropControlsProps extends TableProps { setCaption: (value: React.SetStateAction) => void; setHighlightOnHover: ( value: React.SetStateAction ) => void; setSize: (value: React.SetStateAction) => void; setVariation: (value: React.SetStateAction) => void; } interface TablePropControlsInterface { (props: TablePropControlsProps): JSX.Element; } export const TablePropControls: TablePropControlsInterface = ({ highlightOnHover, setCaption, setHighlightOnHover, setSize, setVariation, size, variation, }) => ( setCaption(event.target.value as TableProps['caption']) } /> setHighlightOnHover(e.target.checked)} /> setSize(e.target.value as TableProps['size'])} > setVariation(e.target.value as TableProps['variation'])} > );